package com.ebt.m.commons.buscomponent.listview;

import com.ebt.m.commons.model.data.BaseDataResult;
import com.ebt.m.commons.buscomponent.listview.SectionItem;

import java.util.List;

/**
 * Created by andy on 16-6-6.
 */
public class BaseListContract {
    public interface IView extends BaseIView {

        void update(Object... args);

        void updateData(List<SectionItem> items);

        void updateDataAdd(List<SectionItem> items);

        void setFootStatus(int status, boolean showView);

        void updateCount(BaseDataResult.PageInfo pageInfo);

        void errorData();

        void showProgress(boolean show);

    }

    public interface IPresenter<T> {
        void loadNew(Object... args);

        void refresh();

        void loadNext(Object... args);

        List<SectionItem> createSectionItem(List<T> datas);

    }
}
